package org.jeecg.modules.business.transfer.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 移库单
 * @Author: jeecg-boot
 * @Date:   2023-08-11
 * @Version: V1.0
 */
@ApiModel(value="wms_move_receipt对象", description="移库单")
@Data
@TableName("wms_move_receipt")
public class WmsMoveReceipt implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @Dict(dictTable = "sys_user",dicCode = "username",dicText = "realname")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private String sysOrgCode;
	/**组织*/
	@Excel(name = "组织", width = 15)
    @ApiModelProperty(value = "组织")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private String organization;
	/**调拨类型*/
	@Excel(name = "调拨类型", width = 15, dicCode = "transfer_type")
    @Dict(dicCode = "transfer_type")
    @ApiModelProperty(value = "调拨类型")
    private String transferType;
	/**单据编号*/
	@Excel(name = "单据编号", width = 15)
    @ApiModelProperty(value = "单据编号")
    private String documentCode;
	/**单据类型*/
	@Excel(name = "单据类型", width = 15)
    @ApiModelProperty(value = "单据类型")
    @Dict(dicCode = "move_type")
    private String documentType;
	/**货主类型*/
	@Excel(name = "货主类型", width = 15, dicCode = "wms_owner_of_cargo")
    @Dict(dicCode = "wms_owner_of_cargo")
    @ApiModelProperty(value = "货主类型")
    private String ownerType;
	/**业务日期*/
	@Excel(name = "业务日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "业务日期")
    private Date businessDate;
	/**仓库id*/
	@Excel(name = "仓库id", width = 15, dictTable = "wms_basic_warehouse", dicText = "name", dicCode = "id")
    @Dict(dictTable = "wms_basic_warehouse", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "仓库id")
    private String transferFromWarehouseId;
	/**货主*/
	@Excel(name = "货主", width = 15)
    @ApiModelProperty(value = "货主")
    private String transferFromOwner;
	/**仓库组*/
	@Excel(name = "仓库组id", width = 15)
    @ApiModelProperty(value = "仓库组id")
    @Dict(dictTable = "wms_basic_warehouse_group", dicText = "name", dicCode = "id")
    private String wmsBasicWarehouseGroupId;
	/**仓管员*/
	@Excel(name = "仓管员", width = 15)
    @ApiModelProperty(value = "仓管员")
    private String warehouseKeeper;
	/**部门*/
	@Excel(name = "部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    @ApiModelProperty(value = "部门")
    private String transferFromDepartment;
	/**单据状态*/
	@Excel(name = "单据状态", width = 15)
    @ApiModelProperty(value = "单据状态")
    @Dict(dicCode = "document_status")
    private String documentStatus;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**逻辑删除*/
	@Excel(name = "逻辑删除", width = 15)
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer delFlag;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
	/**是否有子数据*/
	@Excel(name = "是否有子数据", width = 15)
    @ApiModelProperty(value = "是否有子数据")
    private Integer hasChild;
	/**调拨入库任务id*/
    @ApiModelProperty(value = "调拨入库任务id")
    @Dict(dictTable = "wms_in_receipt_task", dicText = "code", dicCode = "id")
    private String inTaskId;
    /**调拨入库任务单号*/
    @ApiModelProperty(value = "调拨入库任务单号")
    @TableField(exist = false)
    private String inTaskId_dictText;
    /**来源系统*/
    @Excel(name = "来源系统", width = 15)
    @ApiModelProperty(value = "来源系统")
    private String originalSystem;
    /**来源单据*/
    @Excel(name = "来源单据", width = 15)
    @ApiModelProperty(value = "来源单据")
    private String originalSystemNumber;
    /**
     * 备料/退料区域
     */
    @ApiModelProperty(value="备料/退料区域")
    private String materialArea;
    /**
     * 备料/退料站点
     */
    @ApiModelProperty(value="备料/退料站点")
    private String materialSite;

    /**
     * 调拨任务id
     */
    @ApiModelProperty(value="调拨任务id")
    private String deliveryTaskId;

    /**
     * 调拨出库任务id
     */
    @ApiModelProperty(value="调拨出库任务id")
    private String deliveryOutTaskId;

    /**
     * 调拨入库任务id
     */
    @ApiModelProperty(value="调拨入库任务id")
    private String deliveryInTaskId;

    /**
     * 产线名称
     */
    @ApiModelProperty(value = "产线名称")
    private String productLine;

    /**
     * 库区id
     */
    @ApiModelProperty(value="库区id")
    @TableField(exist = false)
    private String wmsBasicWarehouseAreaId;
    /**批次号*/
    @ApiModelProperty(value = "批次号")
    @TableField(exist = false)
    private String batchCode;
    /**钢卷号*/
    @ApiModelProperty(value = "钢卷号")
    @TableField(exist = false)
    private String steelCoilNumber;
    /**
     * 调拨任务单号
     */
    @ApiModelProperty(value="调拨任务单号")
    @TableField(exist = false)
    private String deliveryTaskCode;
    /**客户*/
    @Excel(name = "客户", width = 15, dictTable = "wms_basic_customer", dicText = "name", dicCode = "id")
    @Dict(dictTable = "wms_basic_customer", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "客户")
    private String wmsBasicSupplierId;
    /**供应商*/
    @Excel(name = "供应商", width = 15, dictTable = "wms_basic_supplier", dicText = "code", dicCode = "id")
    @Dict(dictTable = "wms_basic_supplier", dicText = "code", dicCode = "id")
    @ApiModelProperty(value = "供应商")
    private String supplier;
    @ApiModelProperty(value = "出库凭证")
    private String voucher;
    @ApiModelProperty(value = "请求人员")
    private String requestPerson;
    @ApiModelProperty(value = "请求时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date requestTime;
    @ApiModelProperty(value = "任务编号")
    private String taskCode;
    @ApiModelProperty(value = "站点编号")
    private String siteCode;
}
